#include "mainwindow.h"

#include <QApplication>
#include<dialog.h>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
   Dialog log;MainWindow w;
   if(log.exec()==Dialog::Accepted)
    {
    w.show();
    return a.exec();}
   else {
       return 0;
   }
}
